﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanlyDanhsachThiCapPhong
{
    class Function
    {
        public Function(){}
        public String validId(int id)
        {
            int length = id.ToString().Length;
            string add0 = "";
            string ultiId = "";
            for (int i = 0; i < 6 - length; i++)
            {
                add0 = add0 + "0";
            }
            ultiId = add0 + id.ToString();
            return ultiId;
        }
        public String checkNull(string value)
        {
            if (value == null || value == "")
            {
                value = "n/a";
            }
            return value;
        }
    }
}
